<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        var p=prompt("输入月份")
        var t=prompt("头等舱还是经济舱");;
        
        if(p>=5&&p<=10){
            if(t=="头等舱"){
                console.log("头等舱2000");
            }else{
                console.log("经济舱800");
            }
        }else{
            if(t=="头等舱"){
                console.log("头等舱800");
            }else{
                console.log("经济舱200");
            }
        }
    </script>
</body>
</html>